package daw1.prog.ud11.practica;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class AccessAPI {
	static Connection con=null;
	
	public AccessAPI(){
		try{
			con=DriverManager.getConnection("jdbc:mysql://localhost/PERSONASBD","root" ,"" );
		}
		catch(SQLException e){
			e.printStackTrace();
		}
}
	
	public static void main(String[]args){
		try{
			Class.forName("com.mysql.jdbc.Driver");
		}
		catch(ClassNotFoundException e){
			e.printStackTrace();
		}
		try{
			
		}
		catch(Exception e){
			e.printStackTrace();
		}
		try{
			con.close();
		}
		catch(Exception e){
			e.printStackTrace();
		}
	}
	public void insertar(int dni, String nombre, int edad){
	
}
	public void borrar(int dni){
	
}
	public void modificar(int dni, String nombre){
	
}
	public void modificar(int dni, int edad){
	
}
	public String getNombre(int dni){
		return "";
}
	public int getEdad(int dni){
		return 0;
}

}
class DNIException extends Exception{
	
}
class EdadFormatoException extends Exception{
	
}
class NombreFormatoException extends Exception{
	
}
